package com.elock.service.serviceImpl;

import java.util.Date;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.elock.base.core.Page;
import com.elock.base.core.Pageable;
import com.elock.base.core.service.impl.BaseServiceImpl;
import com.elock.dao.TerminalNotifyMessageDao;
import com.elock.entity.TerminalNotifyMessage;
import com.elock.service.TerminalNotifyMessageService;

/**
 * 终端消息信息
 * @author 仁德
 */
@Service("terminalNotifyMessageServiceImpl")
public class TerminalNotifyMessageServiceImpl extends
		BaseServiceImpl<TerminalNotifyMessage> implements TerminalNotifyMessageService {

	@Resource(name = "terminalNotifyMessageDao")
	private TerminalNotifyMessageDao terminalNotifyMessageDao;

	@Override
	@Transactional(readOnly = true)
	public Page<Map<String, Object>> findPage(Pageable pageable, Object[] args) {
		return terminalNotifyMessageDao.findPage(pageable, args);
	}

	@Override
	@Transactional(readOnly = true)
	public int getNoProcess() {
		return terminalNotifyMessageDao.getNoProcess();
	}

	@Override
	@Transactional
	public void updateProcessResult(Long[] ids, String processResult, String processor,
			Date searchTime) {
		terminalNotifyMessageDao.updateProcessResult(ids,
				processResult,
				processor,
				searchTime);
	}
}
